/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Putra
 */
import java.util.Scanner;

public class ParameterUniform extends Parameter{
    double a,b;
    Scanner scan= new Scanner(System.in);
    
    public ParameterUniform(){
        System.out.println("Paramater A : ");
        a = scan.nextDouble();
        System.out.println("Parameter B : ");
        b = scan.nextDouble(); 
    }
    
    /**
     * @return the a
     */
    public double getA() {
        return a;
    }

    /**
     * @param a the a to set
     */
    public void setA(double a) {
        this.a = a;
    }

    /**
     * @return the b
     */
    public double getB() {
        return b;
    }

    /**
     * @param b the b to set
     */
    public void setB(double b) {
        this.b = b;
    }
    


    @Override
    public void integral() {
        double pdf = 1/(b-a);
        System.out.println("Nilai pdf distribusi chi square adalah :"+ pdf);
    }

    @Override
    public double F(double x) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public void standarDeviasi() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
